import request from '@/utils/request'

const prePath = "/15189";

/* 分页查询产品状态 */
export function getProductStatus(params) {
    return request({
        url: prePath + '/productStatus/page',
        method: "get",
        params
    })
}

/* 分页查询 */
export function getInstitutionalInquiries(params) {
    return request({
        url: prePath + '/institutionalInquiries/page',
        method: "get",
        params
    })
}

/* 分页查询机构 */
export function getManufacturerProduct(params) {
    return request({
        url: prePath + '/manufacturerProduct/page',
        method: "get",
        params
    })
}

export function getIdentifyQuery(params) {
    return request({
        url: prePath + '/identifyQuery/page',
        method: "get",
        params
    })
}

//导出机构查询
export function exportInstitutionalInquiries(params) {
    return request({
        url: prePath + `/institutionalInquiries/excel`,
        method: 'get',
        responseType: 'blob',
        params
    })
}

//导出产品状态
export function exportProductStatus(params) {
    return request({
        url: prePath + `/productStatus/excel`,
        method: 'get',
        responseType: 'blob',
        params
    })
}

//导出制造商产品
export function exportManufacturerProduct(params) {
    return request({
        url: prePath + `/manufacturerProduct/excel`,
        method: 'get',
        responseType: 'blob',
        params
    })
}

//导出标识查询
export function exportIdentifyQuery(params) {
    return request({
        url: prePath + `/identifyQuery/excel`,
        method: 'get',
        responseType: 'blob',
        params
    })
}

//打印机构查询
export function printInstitutionalInquiries(params) {
    return request({
        url: prePath + `/institutionalInquiries/print`,
        method: 'get',
        params
    })
}

//打印产品状态
export function printProductStatus(params) {
    return request({
        url: prePath + `/productStatus/print`,
        method: 'get',
        params
    })
}

//打印制造商产品
export function printManufacturerProduct(params) {
    return request({
        url: prePath + `/manufacturerProduct/print`,
        method: 'get',
        params
    })
}

//打印标识查询
export function printIdentifyQuery(params) {
    return request({
        url: prePath + `/identifyQuery/print`,
        method: 'get',
        params
    })
}

//打印标识
export function printSingleQrCode(data) {
    return request({
        url: prePath + '/identifyQuery/printSingleQrCode',
        method: 'post',
        data
    })
}
//日期查询-列表数据
export function getProductDatePage(params) {
    return request({
        url: prePath + '/productDate/page',
        method: 'get',
        params
    })
}
//日期查询-详情列表数据
export function getProductDateDetailsPage(params) {
    return request({
        url: prePath + '/productDate/detailPage',
        method: 'get',
        params
    })
}
//日期查询-详情列表数据
export function productDatePrint(params) {
    return request({
        url: prePath + '/productDate/print',
        method: 'get',
        params
    })
}
//日期查询-导出
export function productDateExcel(params) {
    return request({
        url: prePath + `/productDate/excel`,
        method: 'get',
        responseType: 'blob',
        params
    })
}
